lib/sysroot: fix placement for not-default deployment
authorGuy Shapiro <guy.shapiro@mobi-wize.com>
Mon, 21 Aug 2017 06:42:48 +0000 (09:42 +0300)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 21 Aug 2017 16:52:13 +0000 (16:52 +0000)
commitca61a2bd9d5002ac6cdf2371077e15b0c25da2bc
treeb5302769f3529c62774b4b9aad8e02af0fc813d2
parent1e5b06be5b7351ba4b9b398ac4d5431348ae6c03
lib/sysroot: fix placement for not-default deployment

When using the
OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT flag, the
deployment is said to be added after the booted or merge deployment.
Fix the condition to do so instead of adding it in the second place.

Closes: #1097
Approved by: cgwalters
src/libostree/ostree-sysroot.c